#ifndef _JPEG_CONVERT_H_
#define _JPEG_CONVERT_H_

typedef enum {
    EXT_RAW,
    EXT_RGBA,
}ext_pic_type_e;

int jpeg_2_rgba(char *jpeg_buffer, int jpeg_buffer_len, char *rgba_buffer);
int jpeg_to_raw(char *jpeg_buffer, int jpeg_buffer_len, char *rgba_buffer, int *width, int *height, ext_pic_type_e type);

void rgba_to_jpeg(unsigned char *imageData, unsigned char **compressedBuffer,int imageWidth, int imageHeight,  int channels,  unsigned long *outSize);
int jpeg_test(void);


#endif

